#ifndef __UTILS_HJ_H__
#define __UTILS_HJ_H__

#include <stdio.h>
#include <string.h>

#ifdef __cplusplus
extern "C"{
#endif

#include "schdr_api.h"
#include "cvapi_ambacv_flexidag.h"
#include "cvapi_svccvalgo_memio_interface.h"

#ifdef __cplusplus 
}
#endif


float CV_GetAudioClockUs(void);
uint32_t CV_FlexidagTimestamp(void);

typedef struct {
    int num;
    char *relu_buffer;
    char *reducesum_buffer;
} inter_buffer_s;

uint32_t Do_Load_And_Open_FlexidagBin(const char flexidag_path[], flexidag_memblk_t *bin_buf, AMBA_CV_FLEXIDAG_HANDLE_s *handle);
uint32_t Do_Init_Flexidag(AMBA_CV_FLEXIDAG_HANDLE_s *handle, AMBA_CV_FLEXIDAG_INIT_s *init);
#endif